@layout("/common/_container.html",{js:["/assets/classification/classification_add.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>

<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="classificationForm" lay-filter="classificationForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
                <input name="id" type="hidden"/>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="button" class="layui-btn" id="show1">添加分类</button>
                        <button type="button" class="layui-btn" id="show2">添加品牌</button>
                    </div>
                </div>
        <div id="div1" style="display: none">
                <div class="layui-form-item"  >
                    <label class="layui-form-label">分类名称<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="nameA" name="nameA" placeholder="请输入分类名称" type="text" class="layui-input" />
                        <input id="levelA" name="levelA" placeholder="请输入分类名称" type="hidden" value="1"  class="layui-input" />
                        <input id="parentCodeA" name="parentCodeA" placeholder="请输入分类名称" type="hidden" value="-1"  class="layui-input" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit1" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                    </div>
                </div>
        </div>


                <div id="div2" style="display: none">
                    <div class="layui-form-item"  >
                        <label class="layui-form-label">所属分类<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                        <select name="parentCodeB" id="parentCode" >
                        </select>
                        </div>
                    </div>
                    <div class="layui-form-item"  >
                        <label class="layui-form-label">品牌名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                           <!-- <input id="nameB" name="nameB" placeholder="请输入分类名称" type="text" class="layui-input" />-->
                            <input id="levelB" name="levelB" placeholder="请输入分类名称" type="hidden" value="2"  class="layui-input" />
                           <!-- <input id="parentCodeB" name="parentCodeB" placeholder="请输入分类名称" type="hidden" value="-1"  class="layui-input" />-->
                            <select name="nameB" id="nameB" >
                            </select>
                        </div>
                    </div>








                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-filter="btnSubmit2" lay-submit>&emsp;提交&emsp;</button>
                            <button class="layui-btn layui-btn-primary" type="button" id="backupPages">&emsp;返回&emsp;</button>
                        </div>
                    </div>
                </div>


            <!--    <div class="layui-form-item">
                    <label class="layui-form-label">分类签序号<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="parentCode" name="parentCode" placeholder="请输入分类签序号" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">分类等级<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="level" name="level" placeholder="请输入分类等级" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">分类log地址<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="logPath" name="logPath" placeholder="请输入分类log地址" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">背景图片<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="bgPath" name="bgPath" placeholder="请输入背景图片" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>-->
             <!--   <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                    </div>
                </div>-->
            </form>
        </div>
    </div>
</div>

@}